﻿using System;
using System.Collections.Generic;

namespace Epam.PeopleInterfaces
{
    public interface INewsService
    {
        void Create(INewsEntity item);

        void Update(INewsEntity item);

        void Delete(Guid id);

        INewsEntity GetById(Guid id);

        ICollection<INewsEntity> ReadAll();

        ICollection<INewsEntity> ReadByPage(int currentPage, int itemPerPage);

        ICollection<IViewNewsEntity> ReadAllView();

        ICollection<IViewNewsEntity> ReadViewByPage(int currentPage, int itemPerPage);

        INewsEntity NewEntity(string text, string title);
    }
}
